package com.qiaoda.service;

import com.qiaoda.model.User;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * Created by wuyu on 2016/9/17.
 */
public interface UserRepository extends ElasticsearchRepository<User, Integer> {

    public User findByUsername(String username);

    public void deleteByUsername(String username);

}
